Skip to content

feat: byok model selection#17

Merged
homanp merged 2 commits intomainfrom
feat/byok-model-selection
Mar 15, 2026
Merged

feat: byok model selection#17
homanp merged 2 commits intomainfrom
feat/byok-model-selection

Conversation

@homanp
Copy link
Copy Markdown
Owner

@homanp homanp commented Mar 15, 2026

What

Add support for BOYK and more models

Why

Allows users to use whatever model they want with their own API keys.

Test plan

  • Tests pass locally
  • Tested manually

homanp added 2 commits March 15, 2026 16:38
Add a model selector to the chat sidebar using AI Elements ModelSelector.
Users can choose from 12 providers (Anthropic, OpenAI, Google, xAI,
Mistral, Groq, Cerebras, DeepSeek, Perplexity, Cohere, Together AI,
Fireworks) and 35+ models. API keys are entered via BYOK and stored in
localStorage.

- AI Elements ModelSelector component with searchable command palette
- Model registry config with all providers and models
- Settings store (Zustand) for model selection and API key management
- Dynamic provider creation on the server via createModel helper
- Anthropic-specific features (thinking, web_search) conditionally applied
- Both chat and generate-title routes accept model + apiKey from client
- Add Moonshot AI (Kimi), Alibaba (Qwen), DeepInfra providers
- Update all provider models to latest verified IDs from official docs
- Move model selector into the prompt action bar next to submit
- Add GitHub star count button to the header nav
- Fix dialog close button vertical alignment

Made-with: Cursor
@homanp homanp self-assigned this Mar 15, 2026
@github-actions github-actions bot added the contributor:verified Contributor passed trust analysis. label Mar 15, 2026
@homanp homanp changed the title Feat/byok model selection feat: byok model selection Mar 15, 2026
@homanp homanp merged commit 32ab664 into main Mar 15, 2026
3 checks passed
@homanp homanp linked an issue Mar 15, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor:verified Contributor passed trust analysis.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add support for using any model via AI SDK

1 participant